#FROM adoptopenjdk/openjdk11:alpine-jre
FROM openjdk:11

# ADD target/spring-boot-helloworld-*-SNAPSHOT.jar /applications/spring-boot-helloworld.jar

# #ENTRYPOINT ["/usr/local/openjdk-11/bin/java -jar /applications/spring-boot-helloworld.jar --server.port=80"]
# #CMD ["java","-jar","/applications/spring-boot-helloworld.jar --server.port=8888"]
# CMD ["java","-jar","/applications/spring-boot-helloworld.jar","--server.port=8888"]

#FROM harbor.yuankun.cc:8443/app/jre1.8:latest
# ARG PROJECT_NAME
RUN mkdir /app && rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
COPY target/spring-boot-helloworld-0.9.0-SNAPSHOT.jar /app
WORKDIR /app
CMD [ "java","-jar","/app/spring-boot-helloworld-0.9.0-SNAPSHOT.jar","--server.port=80" ]